home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / RTANKSRC.ZIP / INTERP.H < prev    next >
Text File  |  1988-12-07  |  2KB  |  72 lines

  1. /**--------------------------------------------------------------
  2.  **
  3.  **--------------------------------------------------------------
  4.  ** MODULE     : interp.h
  5.  ** PURPOSE    : <t> Header file for interp.c
  6.  ** PROGRAMMER : Sandy
  7.  ** START DATE : 11/29/1988 12:09:26
  8.  ** DESCRIPTION:
  9.  **            :
  10.  **            :
  11.  **==============================================================
  12.  **/
  13.  
  14. #define   ZARG  struct zarg_type
  15. #define p_ZARG  ZARG *
  16. #define   ZLINE struct line_type
  17. #define p_ZLINE ZLINE *
  18. #define   BOT   struct bot_type
  19. #define p_BOT   BOT *
  20.  
  21. #define MAXLINES 1000
  22.  
  23. ZARG {
  24.    int n_ArgType;
  25.    int n_value;
  26. };
  27.  
  28. ZLINE {
  29.    int     n_command;
  30.    int     pline;
  31.    ZARG    arg1, arg2, arg3, arg4;
  32. };
  33.  
  34. BOT {
  35.    BYTE    bx, by, obx, oby;
  36.    BYTE    bax, bay, obax, obay;
  37.    int     vars[100];
  38.    p_ZLINE line[MAXLINES];
  39.    int     nlines;
  40.    int     fsize;
  41.    int     cline;
  42.    int     cdir;
  43.    int     gdir;
  44.    int     ready;
  45.    int     gosub[20];
  46.    int     depth;
  47.    BOOL    active;
  48.    BYTE far *pic[9];
  49.    TANK    tank_config;
  50. };
  51.  
  52. void v_load_file(PSTR s, p_BOT);
  53. void v_interp_main(PSTR s);
  54. void v_ido_move(p_BOT p);
  55. int n_get_arg(p_BOT pbot, p_ZARG p);
  56. void v_store(p_BOT pb,p_ZARG pa, int n);
  57. void v_interprete(p_BOT p);
  58. void v_init_bot(p_BOT pbot);
  59. void v_do_return(p_BOT pb);
  60. void v_do_call(p_BOT pb, p_ZARG pa);
  61. void v_do_arena(PSTR s[]);
  62. void v_free_interpreter_ram(p_BOT p);
  63. void v_shoot(p_BOT p);
  64. void v_flash_tank(int a);
  65. BOOL b_check_for_hit(int x, int y);
  66. int n_check_radar(p_BOT p);
  67. int n_check_scan(p_BOT p, int n);
  68. void v_erase_player(p_BOT p);
  69. void v_draw_player(p_BOT p);
  70. void v_init_playfield(void);
  71. void v_redraw_player(p_BOT p);
  72.